import clone from './clone';

/**
 * 删除
 * @param obj js对象
 * @param key 要删除的键
 */
export default function remove(obj: object, key: string) {
	const o = clone(obj);
	delete o[key];
	return o;
}
